// Field.cpp : Implementation of CField

#include "stdafx.h"
#include "Field.h"


// CField

STDMETHODIMP CField::InterfaceSupportsErrorInfo(REFIID riid)
{
	static const IID* arr[] = 
	{
		&IID_IField
	};

	for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		if (InlineIsEqualGUID(*arr[i],riid))
			return S_OK;
	}
	return S_FALSE;
}

//STDMETHODIMP CField::get_FieldDefinition(IFieldDefinition** pVal)
//{
//	// TODO: Add your implementation code here
//
//	return S_OK;
//}
STDMETHODIMP CField::get_Value(VARIANT* pVal)
{
	// TODO: Add your implementation code here

	return S_OK;
}

STDMETHODIMP CField::put_Value(VARIANT newVal)
{
    
	// TODO: Add your implementation code here

    //The item must be open for edit for this operation.
	return S_OK;
}


STDMETHODIMP CField::get_Name(BSTR* pVal)
{
	// TODO: Add your implementation code here

	return S_OK;
}


STDMETHODIMP CField::get_Id(LONG* pVal)
{
	// TODO: Add your implementation code here

	return S_OK;
}


//STDMETHODIMP CField::get_EditType(TsFieldEditTypeEnum* pVal)
//{
//	// TODO: Add your implementation code here
//
//	return S_OK;
//}


STDMETHODIMP CField::get_ValidValues(IValues** pVal)
{
	// TODO: Add your implementation code here

	return S_OK;
}
